<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>es6-模块化</title>
</head>
<body>

</body>
<script type="module">
    import {sum,foo} from "./js/module1.js";
/*
   import module1 from './js/module1.js'

   // alert(foo(12));
    //alert(sum(23,46));
    //alert(module1.summary(23,45))
    alert(module1.num)
*/

</script>
</html>